Skip to content

fix(lsp): vim.lsp.codelens.refresh() is deprecated#611

Merged
ray-x merged 1 commit intoray-x:masterfrom
ryancragun:codelense-deprecation
Apr 5, 2026
Merged

fix(lsp): vim.lsp.codelens.refresh() is deprecated#611
ray-x merged 1 commit intoray-x:masterfrom
ryancragun:codelense-deprecation

Conversation

@ryancragun
Copy link
Copy Markdown
Contributor

Fix a deprecated call. Run checkhealth vim:deprecated on nvim >= 0.0.12

WARNING vim.lsp.codelens.refresh({ bufnr = bufnr}) is deprecated. Feature will be removed in Nvim 0.13.0
  - ADVICE:
    - use vim.lsp.codelens.enable(true, { bufnr = bufnr }) instead.

Signed-off-by: Ryan Cragun <me@ryan.ec>
Copy link
Copy Markdown
Owner

@ray-x ray-x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ray-x ray-x merged commit c97cac0 into ray-x:master Apr 5, 2026
0 of 2 checks passed
@BYT0723
Copy link
Copy Markdown

BYT0723 commented Apr 7, 2026

It still exists in codelens.lua#L59

@ray-x
Copy link
Copy Markdown
Owner

ray-x commented Apr 8, 2026

thanks, it should been fixed in latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants